.class public Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;
.super Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;
.source "NotificationPreferenceFragment.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;-><init>()V

    return-void
.end method

.method static synthetic a(Landroidx/preference/Preference;Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 0

    .line 2
    check-cast p2, Ljava/lang/Boolean;

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    .line 3
    invoke-virtual {p0, p1}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 4
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p0

    invoke-virtual {p0, p1}, Les/eo;->b(Z)V

    const/4 p0, 0x1

    return p0
.end method

.method static synthetic a(Landroidx/preference/Preference;Ljava/lang/Object;)Z
    .locals 0

    .line 5
    :try_start_0
    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/app/log/g;->d()Lcom/estrongs/android/pop/app/log/g;

    move-result-object p1

    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/app/log/g;->a(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    const/4 p0, 0x1

    return p0
.end method

.method private b()Ljava/lang/String;
    .locals 4

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f110055

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f110211

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f110a28

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 4
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " \u2265 1 Mb"

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private d()V
    .locals 3

    const-string v0, "new_file_notificationbar_format"

    .line 1
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/estrongs/android/ui/preference/fragments/j1;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/preference/fragments/j1;-><init>(Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;)V

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceClickListener(Landroidx/preference/Preference$OnPreferenceClickListener;)V

    const-string v1, "new_file_notificationbar_setting"

    .line 3
    invoke-virtual {p0, v1}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v1

    check-cast v1, Landroidx/preference/CheckBoxPreference;

    if-eqz v1, :cond_0

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/o;->H()Z

    move-result v2

    invoke-virtual {v1, v2}, Landroidx/preference/TwoStatePreference;->setChecked(Z)V

    .line 5
    new-instance v2, Lcom/estrongs/android/ui/preference/fragments/i1;

    invoke-direct {v2, v0}, Lcom/estrongs/android/ui/preference/fragments/i1;-><init>(Landroidx/preference/Preference;)V

    invoke-virtual {v1, v2}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    .line 6
    :cond_0
    invoke-virtual {v1}, Landroidx/preference/TwoStatePreference;->isChecked()Z

    move-result v2

    invoke-virtual {v0, v2}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    iget-boolean v2, v2, Lcom/estrongs/android/pop/FexApplication;->l:Z

    if-eqz v2, :cond_1

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->Z0()Z

    move-result v2

    if-nez v2, :cond_1

    const/4 v2, 0x0

    .line 9
    invoke-virtual {v1, v2}, Landroidx/preference/Preference;->setEnabled(Z)V

    .line 10
    invoke-virtual {v0, v2}, Landroidx/preference/Preference;->setEnabled(Z)V

    :cond_1
    const-string v0, "new_file_ps_apps"

    .line 11
    invoke-virtual {p0, v0}, Landroidx/preference/PreferenceFragmentCompat;->findPreference(Ljava/lang/CharSequence;)Landroidx/preference/Preference;

    move-result-object v0

    check-cast v0, Landroidx/preference/CheckBoxPreference;

    .line 12
    invoke-static {}, Lcom/estrongs/android/pop/app/log/g;->d()Lcom/estrongs/android/pop/app/log/g;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/app/log/g;->b()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroidx/preference/TwoStatePreference;->setChecked(Z)V

    .line 13
    sget-object v1, Lcom/estrongs/android/ui/preference/fragments/k1;->a:Lcom/estrongs/android/ui/preference/fragments/k1;

    invoke-virtual {v0, v1}, Landroidx/preference/Preference;->setOnPreferenceChangeListener(Landroidx/preference/Preference$OnPreferenceChangeListener;)V

    return-void
.end method

.method private f()V
    .locals 11

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f030011

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f030012

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v1

    .line 3
    array-length v2, v1

    const/4 v3, 0x1

    add-int/2addr v2, v3

    new-array v4, v2, [Ljava/lang/String;

    .line 4
    array-length v5, v1

    add-int/2addr v5, v3

    new-array v5, v5, [Ljava/lang/String;

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 5
    :goto_0
    array-length v8, v1

    if-ge v7, v8, :cond_0

    .line 6
    aget-object v8, v0, v7

    aput-object v8, v5, v7

    .line 7
    aget-object v8, v1, v7

    aput-object v8, v4, v7

    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    :cond_0
    const-string v0, "1MB"

    add-int/lit8 v1, v2, -0x1

    .line 8
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;->b()Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v1

    .line 9
    aput-object v0, v4, v1

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v1

    const-string v7, "new_file_notificationbar_setting"

    invoke-virtual {v1, v7}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;)Ljava/util/Set;

    move-result-object v1

    .line 11
    new-array v7, v2, [Z

    .line 12
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v8

    invoke-virtual {v8}, Lcom/estrongs/android/pop/o;->j0()Z

    move-result v8

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v9

    invoke-virtual {v9}, Lcom/estrongs/android/pop/o;->i0()Z

    move-result v9

    const-string v10, "notifyfiletype"

    if-nez v8, :cond_3

    if-eqz v9, :cond_1

    const-string v0, "\u4e0d\u91c7\u53d6\u63aa\u65bd\uff0c\u56e0\u4e3atTmpValues\u5df2\u7ecf\u662fcms\u914d\u7f6e"

    .line 14
    invoke-static {v10, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    if-eqz v1, :cond_2

    .line 15
    invoke-interface {v1}, Ljava/util/Set;->size()I

    move-result v8

    if-nez v8, :cond_2

    const-string v0, "\u65e7\u7528\u6237\u5df2\u7ecf\u8bbe\u7f6e\u8fc7\uff0c\u5e76\u4e14\u5168\u90e8\u5173\u95ed\uff0c\u4e0d\u91c7\u53d6\u63aa\u65bd"

    .line 16
    invoke-static {v10, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 17
    :cond_2
    new-instance v1, Ljava/util/HashSet;

    invoke-direct {v1}, Ljava/util/HashSet;-><init>()V

    const-string v8, "img"

    .line 18
    invoke-interface {v1, v8}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    const-string v8, "apk"

    .line 19
    invoke-interface {v1, v8}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 20
    invoke-interface {v1, v0}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_3
    const-string v0, "\u5c55\u793a\u8fc7\uff0c\u4e0d\u91c7\u53d6\u63aa\u65bd"

    .line 21
    invoke-static {v10, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 22
    :goto_1
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    if-eqz v1, :cond_4

    .line 23
    invoke-interface {v0, v1}, Ljava/util/Set;->addAll(Ljava/util/Collection;)Z

    :cond_4
    :goto_2
    if-ge v6, v2, :cond_5

    .line 24
    aget-object v1, v4, v6

    invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z

    move-result v1

    aput-boolean v1, v7, v6

    add-int/lit8 v6, v6, 0x1

    goto :goto_2

    .line 25
    :cond_5
    new-instance v1, Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const v2, 0x7f110850

    .line 26
    invoke-virtual {p0, v2}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    .line 27
    invoke-virtual {v1, v3}, Lcom/estrongs/android/ui/dialog/q;->setSelectable(Z)V

    const/4 v2, 0x0

    .line 28
    new-instance v3, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment$a;

    invoke-direct {v3, p0, v7, v0, v4}, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment$a;-><init>(Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;[ZLjava/util/Set;[Ljava/lang/String;)V

    invoke-virtual {v1, v2, v5, v7, v3}, Lcom/estrongs/android/ui/dialog/q;->setItems([Landroid/graphics/drawable/Drawable;[Ljava/lang/CharSequence;[ZLandroid/content/DialogInterface$OnClickListener;)V

    .line 29
    new-instance v2, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment$b;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment$b;-><init>(Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;Ljava/util/Set;)V

    invoke-virtual {v1, v2}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 30
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    .line 31
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/o;->t0()V

    return-void
.end method


# virtual methods
.method public synthetic a(Landroidx/preference/Preference;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;->f()V

    const/4 p1, 0x1

    return p1
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroidx/preference/PreferenceFragmentCompat;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/ui/preference/TabletSettingsActivity;->b(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_0

    const p1, 0x7f140026

    .line 3
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    goto :goto_0

    :cond_0
    const p1, 0x7f140018

    .line 4
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->addPreferencesFromResource(I)V

    .line 5
    :goto_0
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p1

    invoke-virtual {p1}, Les/eo;->c()Z

    move-result p1

    if-nez p1, :cond_1

    .line 6
    invoke-virtual {p0}, Landroidx/preference/PreferenceFragmentCompat;->getPreferenceScreen()Landroidx/preference/PreferenceScreen;

    move-result-object p1

    const-string v0, "new_file_notificationbar_setting"

    .line 7
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    const-string v0, "new_file_notificationbar_format"

    .line 8
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/esclasses/ESPreferenceFragment;->a(Landroidx/preference/PreferenceGroup;Ljava/lang/String;)V

    return-void

    .line 9
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/ui/preference/fragments/NotificationPreferenceFragment;->d()V

    return-void
.end method
